// weblog-vue3/src/api/admin/achive.js

import axios from '@/axios';

// 获取归档列表
export const fetchArchives = (params) => {
    return axios.get('/api/archives/list', { params });
};

// 删除归档
export const deleteArchive = (id) => {
    return axios.delete(`/api/archives/delete/${id}`);
};

// Fetch article details
export const fetchArticleDetail = (articleDetailDTO) => {
    return axios.post('/api/archives/detail', articleDetailDTO);
};